package com.ftg.learn.controller;

import com.ftg.learn.entity.UserEntity;
import com.ftg.learn.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author kangjx
 * @createTime 2022/10/25
 */
@RestController
@RequestMapping("/user")
public class UserController{

    @Autowired
    IUserService iUserService;

    @GetMapping("/showall")
    public List<UserEntity> list(){
        return iUserService.list();
    }

}
